<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Assignment 3 - ms2354</title>
</head>
<body>
<%if( request.getAttribute("activesession")==null || Boolean.valueOf(request.getAttribute("activesession").toString())==true) {%>
    (<%=request.getAttribute("views")%>) <%=request.getAttribute("message")%>
    <form action="GreetingServlet" method="GET">
    	<input type="submit" value="Replace" name="cmd"><input type="text" name="replacement" value=<%=request.getAttribute("message")%> size="20"><br>
    	<input type="submit" value="Refresh" name="cmd"><br/>
    	<input type="submit" value="Logout" name="cmd"><br/>
    </form>
    <%=request.getAttribute("address")%>
<%} else {%>
	BYE!
<%} %>
</body>
</html>